
const config = {
	//版本
	common: {
		version: '0.1.0',
	},
	weapp: {
		development: {
			hostSaas: 'https://job.banchengyun.com',
			uploadUrl: 'https://job.banchengyun.com/',
			code: 'ZhaoPinCode##'   // 万能code
		},
		production: {
			// http://192.168.10.93/job-saas/public/index.php
			// https://job.banchengyun.com/
			hostSaas: 'https://job.banchengyun.com',
			uploadUrl: 'https://job.banchengyun.com/',
		}
	},
	h5: {
		development:{
			hostSaas: `${location && location.origin}`,
			uploadUrl: `${location && location.origin}/`,
			domain: `${location && location.origin.substring(7)}`,
			// uploadUrl: 'https://job.banchengyun.com/',
			code: 'ZhaoPinCode##'    //万能code
		},
		production: {
			// http://192.168.10.93/job-saas/public/index.php
			// https://job.banchengyun.com/
			hostSaas: `${location && location.origin}`,
			uploadUrl: `${location && location.origin}/`,
			domain: `${location && location.origin.substring(7)}`,
			code: 'ZhaoPinCode##'    //万能code
		}
	},

}

export default Object.assign(config.common, config[process.env.TARO_ENV])